/**********************************************************************************************************************
 *
 * Project:    mGameEngine
 * File:       vertex.h
 * Author:     karooolek
 * Created on: 2008-12-30
 *
 **********************************************************************************************************************/

#ifndef VERTEX_H_
#define VERTEX_H_

#include "../common.h"

namespace mGameEngine
{
namespace Graphics
{

/**
 * Single mesh vertex.
 */
struct Vertex
{
    /**
     * Position.
     */
    Vector3 position;

    /**
     * Normal.
     */
    Vector3 normal;

    /**
     * Tangent.
     */
    Vector3 tangent;

    /**
     * Color.
     */
    Color color;

    /**
     * Texture coordinates.
     */
    Vector2 texCoords[4];

    /**
     * Bones indices.
     */
    uint8 bones[4];

    /**
     * Bones weights.
     */
    float boneWeights[4];
};

}
}

#endif // VERTEX_H_
